import Vue from 'vue'
import Router from 'vue-router'
import Index from '../pages/Index.vue';//首页
import Home from '../components/Home.vue';
import AddArtical from  '../components/AddArtical.vue';
Vue.use(Router)
export default new Router({
  routes: [
    {
      path: '/',
      component: Index,
      children:[
        {
          path:'home',
          component:Home
        },
        {
          path:'add',
          component:AddArtical
        }
      ]
    },
  ]
})
